package org.metasketch.demo.model;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.metasketch.model.CommonDoubleIdentified;

import com.thoughtworks.xstream.annotations.XStreamAlias;


@XStreamAlias("organizational-unit")
public class OrganizationalUnit extends CommonDoubleIdentified {

	//@XStreamImplicit
	//by id
	@XStreamAlias("assigned-actor-roles")
	Set<ActorRole> assignedActorRoles = new HashSet<ActorRole>();

	//by id
	@XStreamAlias("contained-organizations")
	Set<OrganizationalUnit> containedOrganizations = new HashSet<OrganizationalUnit>();

	public Set<ActorRole> getAssignedActorRoles() {
		return assignedActorRoles;
	}

	public void setAssignedActorRoles(Set<ActorRole> assignedActorRoles) {
		this.assignedActorRoles = assignedActorRoles;
	}

	public Set<OrganizationalUnit> getContainedOrganizations() {
		return containedOrganizations;
	}

	public void setContainedOrganizations(
			Set<OrganizationalUnit> containedOrganizations) {
		this.containedOrganizations = containedOrganizations;
	}

}
